﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Sell_1 : System.Web.UI.Page
{
    Visitor v = new Visitor();
    protected string Count;
    protected void Page_Load(object sender, EventArgs e)
    {
        Literal title = Master.FindControl("title") as Literal;
        title.Text = "留言板-宣汉知名律师-宣汉律师-秦锐";
        AspNetPager1.RecordCount = v.LMCount();
        Count = v.LMCount().ToString();
        bindData();
    }
    public void bindData()
    {
        Repeater1.DataSource = v.GetLM(AspNetPager1.StartRecordIndex, AspNetPager1.EndRecordIndex);
        Repeater1.DataBind();
    }
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        bindData();
    }
}
   